//
//  UIView+HYFuiimage.m
//  hyf-BaiSi
//
//  Created by Bill on 15/6/16.
//  Copyright © 2016年 hyf. All rights reserved.
//

#import "UIView+HYFuiimage.h"


@implementation UIView (Frame)
- (void)setXmg_x:(CGFloat)xmg_x
{
    CGRect frame = self.frame;
    frame.origin.x = xmg_x;
    self.frame = frame;
}

- (CGFloat)xmg_x
{
    return self.frame.origin.x;
}

- (void)setXmg_y:(CGFloat)xmg_y
{
    CGRect frame = self.frame;
    frame.origin.y = xmg_y;
    self.frame = frame;
}

- (CGFloat)xmg_y
{
    return self.frame.origin.y;
}

- (void)setXmg_width:(CGFloat)xmg_width
{
    CGRect frame = self.frame;
    frame.size.width = xmg_width;
    self.frame = frame;
}
- (CGFloat)xmg_width
{
    return self.frame.size.width;
}

- (void)setXmg_height:(CGFloat)xmg_height
{
    CGRect frame = self.frame;
    frame.size.height = xmg_height;
    self.frame = frame;
}

- (CGFloat)xmg_height
{
    return self.frame.size.height;
}

@end
